<%@ Page Language="C#" MasterPageFile="MasterPage.master"  AutoEventWireup="true" CodeFile="ServiceProviderEdt.aspx.cs" Inherits="frmServiceProviderEdt" %>

<asp:Content ID="cntServiceProvider" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <br />
        <strong>Service Providers<br />
        </strong>
        <br />
        <asp:GridView ID="gvServiceProviders" HeaderStyle-HorizontalAlign="left" EmptyDataText="No Service Providers Found" runat="server" AutoGenerateColumns="False" Height="133px"
            Width="571px" AllowPaging="True" AllowSorting="True" OnPageIndexChanging="gvServiceProviders_PageIndexChanging" 
            OnSorting="gvServiceProviders_Sorting" OnRowCommand="gvServiceProviders_RowCommand">
            
            
            <Columns>
                <asp:BoundField HeaderText="SP ID" DataField="ServiceProviderID" SortExpression="ServiceProviderID" ReadOnly="True" />
                <asp:BoundField HeaderText="SP Name" DataField="DisplayName" SortExpression="DisplayName"/>
                <asp:TemplateField HeaderText="SP Type">
                    <ItemTemplate>
                        <%# setServiceProviderTypeCode(Eval("ServiceProviderType")) %>
                    </ItemTemplate>                    
                </asp:TemplateField>
                <asp:ButtonField Text="edit" ButtonType="Button" CommandName="EditSP" InsertVisible="False" />
                <asp:ButtonField Text="delete" ButtonType="Button" CommandName="DeleteSP" InsertVisible="False" />                
            </Columns>
            <PagerSettings Mode="NumericFirstLast"/>
        </asp:GridView>

    </div>
    <br />
    <asp:Button ID="btnAddSP" runat="server" Text="Add Service Provider" OnClick="btnAddSP_Click" /><br />
    
    <asp:TextBox Visible="false" ID="tbSortDirection" runat="server"></asp:TextBox>
    <asp:TextBox Visible="false" ID="tbPage" runat="server"></asp:TextBox>
    <asp:TextBox Visible="false" ID="tbSortProperty" runat="server"></asp:TextBox>    
</asp:Content>